package com.service.impl;

import com.service.IUservice;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author Fang Ruichuan
 * @date 2023-02-27 21:00
 */
@Slf4j
@Service
public class UserServiceImpl implements IUservice {

    @SneakyThrows
    @Async("MyExecutor")
    @Override
    public void insertUser() {
        Thread.sleep(2000);
        log.info("正在执行插入User...");
    }
}
